package info.dani.tulebox;

import java.util.Random;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Dani
 * @thanks Enrico & Casel Por la ayuda dada
 *
 */
public class Atributtes extends ActionSupport {

	private String result = "";
	private int inteligence = 0;
    private int strength = 0 ;
    private int skill = 0 ;
    


    /**
	 * @return the result
	 */
	public String getResult() {
		return result;
	}
	/**
	 * @param result the result to set
	 */
	public void setResult(String result) {
		this.result = result;
	}
	/**
	 * @return the inteligence
	 */
	public int getInteligence() {
		return inteligence;
	}
	/**
	 * @param inteligence the inteligence to set
	 */
	public void setInteligence(int inteligence) {
		this.inteligence = inteligence;
	}
	/**
	 * @return the strength
	 */
	public int getStrength() {
		return strength;
	}
	/**
	 * @param strength the strength to set
	 */
	public void setStrength(int strength) {
		this.strength = strength;
	}
	/**
	 * @return the skill
	 */
	public int getSkill() {
		return skill;
	}
	/**
	 * @param skill the skill to set
	 */
	public void setSkill(int skill) {
		this.skill = skill;
	}
    




	@Override
    public String execute()
    {
		if(inteligence + strength + skill == 30){
			result = "All OK";
			return SUCCESS;
		}
		result = "So many fails !!!!";
		return ERROR;
    }
           
   
    
}